;;; config.el --- .Emacs Configuration -*- lexical-binding: t -*-
;;; Commentary:
;;

;;; Code:
;; (use-package password-store
;;   :ensure t
;;   :config
;;   (progn
;;     (setq password-store-password-length 30)))

;; (use-package pass
;;   :ensure t
;;   :commands pass
;;   :init
;;   (progn
;;     (defun my/pass-insert-generated (entry)
;;       "Same as pass-insert-generated but with my own template."
;;       (interactive (list (read-string "Password entry: ")))
;;       (when (or (not (seq-contains (password-store-list) entry))
;;                 (yes-or-no-p "Erase existing entry with same name? "))
;;         (let ((password (shell-command-to-string
;;                          (format "pwgen --secure --symbols %s"
;;                                  password-store-password-length))))
;;           (password-store-insert
;;            entry
;;            (format "%s--\nusername: %s\nurl: https://%s\n"
;;                    password
;;                    user-mail-address
;;                    entry))
;;           (password-store-edit entry)
;;           (pass-update-buffer)))))
;;   :config
;;   (progn
;;     (advice-add #'pass-insert-generated :override #'my/pass-insert-generated)))

;; (use-package auth-source-pass
;;   :ensure t
;;   :demand t
;;   :after auth-source
;;   :init
;;   (progn
;;     (setq auth-sources '(password-store))))

;; (use-package auth-source
;;   :ensure t
;;   :init
;;   (progn
;;     (setq auth-source-debug t)
;;     (setq auth-source-do-cache nil)))

(provide 'config)
;;; config.el ends here
